import { defineStore } from 'pinia';

const useCommonStore = defineStore('storeCommon', {
  state: () => ({
    logoNoFull: false,
    activePersonalShow: false, //个人中心
    unReaderMessageNum: {
      //  未读消息
      unreadMessage: 10, //消息总数
      unreadNotification: 20, //通知总数
      allNum: 30, //总数
    },
  }),

  actions: {
    changeLogoFull(val) {
      this.logoNoFull = val;
    },
    SET_ACTIVE_PERSONAL_SHOW(show) {
      this.activePersonalShow = show;
    },
    UNREAD_MESSAGE_NUM(num) {
      this.unReaderMessageNum = num;
    },
  },
});

export default useCommonStore;
